/**
 * @Author: zhoujie
 * @Date: 2019/08/24
 * @Last Modified by: 焦质晔
 * @Last Modified time: 2020-02-01 12:51:41
 */
const RouteView = () => import('@/layout/RouteView');
// 异步路由组件加载
const AsyncComponent = __name__ => () => import(`@/pages/${__name__}`);

/** 客户投诉 菜单路由 */
const menuRoutes = [
  /** 客户投诉 S */
  {
    path: 'customerComplain1',
    meta: { title: '客户投诉', icon: 'el-icon-user-solid' },
    redirect: '/customerComplain1',
    component: RouteView,
    children: [
      {
        path: '/customerComplain',
        meta: {
          title: '客户投诉',
          trainModuleId: '9019'
        },
        redirect: '/customerComplain',
        component: RouteView,
        children: [
          {
            path: '/customerRepair/customerComplaint/customerComplaintQuery',
            meta: { title: '客户投诉查询', keepAlive: true, trainModuleId: '901901' },
            component: AsyncComponent('customerRepair/customerComplaint/customerComplaintQuery')
          },
          {
            path: '/claimDemage/AfterSalesService/CustomerComplaints',
            meta: {
              title: '客户投诉管理（区域经理）',
              keepAlive: true,
              trainModuleId: '901902'
            },
            component: AsyncComponent('claimDemage/AfterSalesService/CustomerComplaints')
          }
        ]
      },
     ]
  }
  /** 客户投诉 E */
];

export default menuRoutes;
